import React from 'react'

function Detail1(props) {
  console.log(props.history.location.state.detail);
  return (
    <div>{props.history.location.state.detail.name}
        <img src={props.history.location.state.detail.imgdetail} alt="" />
    </div>
  )
}

export default Detail1